<html>
	<body>
			<canvas id="myCanvas" width="800" height="600" style="border: 1px solid #000000;"></canvas>
			
			<script src="Scripts/Graphics.js"></script>
			
			<script src="Scripts/Sleep.js"></script>
			
			<script src="Scripts/KeyboardManager.js"></script>
			<script src="Scripts/MouseManager.js"></script>
			
			<script src="Scripts/GameObject.js"></script>
			
			<script src="Scripts/Background.js"></script>
			<script src="Scripts/Player.js"></script>
			<script src="Scripts/Windows.js"></script>
			
			<script src="Scripts/Opening.js"></script>
			<script src="Scripts/Credits.js"></script>
			<script src="Scripts/Intro.js"></script>
			<script src="Scripts/History.js"></script>
			<script src="Scripts/Game.js"></script>
			<script src="Scripts/GameOver.js"></script>
			<script src="Scripts/Congratulation.js"></script>
			<script src="Scripts/Carta.js"></script>
			<script src="Scripts/Instructions.js"></script>
			
			<script src="Scripts/SceneManager.js"></script>
			<script src="Scripts/AudioManager.js"></script>
			
				<script>
					
					function Timer()
					{
						if(sceneManager.loop)
						{
							background.update();
						}
						
						setTimeout(Timer, 1000);
					}
					
					Timer();
					
				</script>
			
				<script>
					
					function Loop()
					{
						if(sceneManager.loop)
						{
							graphics.clear();
							
							audio.update();
							
							sceneManager.update();
						}
							sceneManager.draw();
												
						setTimeout(Loop, 16);
					}
					
					Loop();
					
				</script>
	</body>
</html>